package com.aaron.type;

import java.util.concurrent.DelayQueue;
import java.util.concurrent.Delayed;
import java.util.concurrent.TimeUnit;

/**
 * @author liurong
 * @date 2021/8/12 17:09
 * @version:
 */
public class DelayQueueTest {

    public static void main(String[] args) {
        DelayQueue dq = new DelayQueue();
        dq.add(new MyDelayTask());
    }

}

class MyDelayTask implements Delayed {

    @Override
    public long getDelay(TimeUnit unit) {
        return 0;
    }

    @Override
    public int compareTo(Delayed o) {
        return 0;
    }
}